
const MyPromise = require('./Promise/MyPromise')




class Test {

    constructor() {

    }

    testMyPromise() {
        console.log('测试promise');

        return new MyPromise((resolve, reject) => {
            setTimeout(() => {
                resolve('1秒后的数据')
            }, 1000);
        })
    }

    testYunsuan() {
        let res1 = new Boole('test')?.testValue
        let res2 = new Boole('test')?.testValue2
        let res3 = new Boole('test')?.testValue3

        console.log(res1, res2, res3);

    }

}

class Boole {
    constructor(testValue) {
        this.testValue = testValue
    }

    testValue2 = 3
}

module.exports = Test